package au.org.uptick.mygwtpapp.shared.rpc;

import com.gwtplatform.dispatch.shared.UnsecuredActionImpl;

/**
 * An action that can be sent using an {@link DispatchAsync} (client-side)
 * corresponding to a {@link com.gwtplatform.dispatch.server.Dispatch} server-side).
 */
public class SendTextToServer extends
                              UnsecuredActionImpl<SendTextToServerResult> {

    private static final long serialVersionUID = 4621412923270714515L;
    private String textToServer;

    public SendTextToServer(final String textToServer) {
        this.textToServer = textToServer;
    }

    @SuppressWarnings("unused")
    private SendTextToServer() {
    }

    public String getTextToServer() {
        return textToServer;
    }
}
